Expose sandbox bypass in Rust API - #2372
Conversation
Teach the Rust code generator about the runtime's allowBypass host capability until the pinned CLI schema includes it, then verify camelCase serialization and omission when unset. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Exposes the runtime’s optional sandbox-bypass capability through the Rust SDK.
Changes:
- Augments the API schema during Rust code generation.
- Regenerates
SandboxConfigwith optional camelCase serialization. - Tests enabled and omitted serialization behavior.
Show a summary per file
| File | Description |
|---|---|
scripts/codegen/utils.ts |
Adds the temporary schema augmentation. |
scripts/codegen/rust.ts |
Applies augmentation during Rust generation. |
rust/src/generated/api_types.rs |
Adds allow_bypass to SandboxConfig. |
rust/tests/api_types_test.rs |
Verifies serialization and omission. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/4 changed files
- Comments generated: 0
- Review effort level: Balanced
|
Thanks for the Rust implementation of Before this is ready to merge, could you extend the same support to the other five SDKs (Node, C#, Python, Go, and Java)? We want For coverage, please add:
Once all six SDKs have parity and appropriate test coverage, please mark this ready for review again. I'm converting to draft in the meantime. |
Summary
SandboxConfig.allowBypasshost capability until the pinned CLI schema includes itSandboxConfigwith idiomaticallow_bypass: Option<bool>and camelCase serde outputSome(true)and omission ofNonePaired with github/github-app#12088.
Validation
cargo test --test api_types_test sandbox_allow_bypass_serializes_as_optional_camel_case -- --exactcargo +nightly-2026-04-14 fmt --checkcargo clippy --all-features --all-targets -- -D warningscargo test --all-features(608 passed; 10 concurrent E2E proxy startup timeouts; sampled failures passed serially)